package zoo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import world.Mammal;

public class Zoo<T extends Mammal> {
	private T[] ts;
	private int max=100;
	private int cp=0;
	public Zoo() {
		ts=(T[])(new Object[max]);
	}
	public void add(T t){
		ts[cp++]=t;
	}
	public T get(int index){
		return ts[index];
	}
	
	
	
	public static void main(String[] args) {
		
		int a=8;
		Object o=null;
		if(o!=null) o.toString();
		//int[] m=new int[8];
		//System.out.println(m[8]);
//		if(a<m.length) {
//			int x=m[a];
//		}
//		if(o instanceof String){
//			String s=(String)o;
//		}
		
		try {
			FileInputStream fi=new FileInputStream("dfdfd");
		} 
		catch(Exception e){
			e.printStackTrace();
			//
		}
		catch (Throwable e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			//
		}
		finally{
			//close
		}
		//
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	}
}
















